package com.smart.workflow.examples;

import com.smart.workflow.models.SMSInputEvent;
import com.smart.workflow.processors.SMSEventProcessor;

/**
 * Example class
 * @author Lukasz
 *
 */
public class MC implements SMSEventProcessor {
	public static interface MCStates {

		public static final String START = "start";
		public static final String SENT_SMS = "sent sms";
		public static final String FAILED = "failed";
		public static final String OK = "ok";
	}

	private String msisdn;
	private String lastResponse;

	public void setLastResponse(String mes) {
		lastResponse = mes;
	}

	public MC(String msisdn) {
	}

	public String[] getAllStatements() {
		return (new String[] { "select * from SMSInputEvent" });
	}

	public String[] getActualStatements() {
		return (new String[] { "select msisdn,smsc from SMSInputEvent where msisdn = '601123159'" });
	}

	@Override
	public void process(SMSInputEvent toBeProcessed) {
		//TODO: logic of processing event
	}

}
